package com.iooiee;

import com.iooiee.service.OrderService;

import javax.inject.Inject;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import java.time.LocalDateTime;

@Path("/hello")
public class GreetingResource {


    @Inject
    OrderService orderService;

    @GET
    @Produces(MediaType.TEXT_PLAIN)
    public String hello() {
//        return "Hello from RESTEasy Reactive";
        return String.format("orderid, %s",
                LocalDateTime.now(),
                orderService.getOrderId());
    }



}